File: /var/www/html/owlcrm/database/migrations/2024_05_28_123906_create_reminders_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('reminders', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('reminder_to');
$table->unsignedBigInteger('created_by');
$table->string('entity_type');
$table->unsignedBigInteger('entity_id');
$table->text('description');
$table->timestamp('reminder_date');
$table->tinyInteger('is_notified');
$table->tinyInteger('email_notification')->default(0)->comment('0: No, 1: Yes');
$table->tinyInteger('status')->default(1)->comment('0: disabled, 1: enabled');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('reminders');
}
};